# coding=utf-8
import unittest
from blwpy.settings import MEDIA_ROOT
from crawler.crawlers import ManagerZone, CrawlerComputrabajo


class TestCrawling(unittest.TestCase):

    def setUp(self):
        pass
    
    def test_managerZone(self):
        manager= ManagerZone()
        subzones = manager.matchSubZone("buenos aires")
        for subZone in subzones:
            print subZone
            
        zones = manager.matchZone("buenos aires")

        for zone in zones:
            print zone

    def test_crawl(self):
        print MEDIA_ROOT
        print "crawler computrabajo.com"
        computrabajo = CrawlerComputrabajo()
        computrabajo.begin('/bt-ofr-','/bt-ofrd-')

if __name__ == '__main__':
    unittest.main()
    
    